@import "../../../static/common";

.message {
	position: relative;
	z-index: 0;
	background: rgb(248, 248, 248);

	* {
		transition: all .6s ease;
	}

	.chat {
		padding: 10px 0;
		overflow: hidden;
		text-align: center;

		.tips-alert {
			padding: 2px 12px;
			@height: 20Px;
			font-size: 12Px;
			line-height: @height;
			height: @height;
			text-align: center;
			flex: 0;
			border-radius: @height/2;
			background-color: rgb(246, 193, 67);
		}

		.chat-time {
			background-color: #d8d8d8;
			color: #000;
		}

		> div {
			line-height: 1.5;
			font-size: 16px;
			color: white;
		}

		.message-img {
			margin-top: 10px;
			width: 70%;
			height: 70%;
			top: 0;
			color: @themeColor;

			&.big-img {
				position: fixed;
				top: 10px;
				z-index: 999;
				width: 100%;
				height: auto
			}
		}


		.big-img-back {
			position: fixed;
			background: #000000;
			z-index: 998;
			width: 100vw;
			height: 100vh;
			top: 0;
		}

		.avatar {
			height: 40px;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;

			img {
				display: inline-block;
				width: 28px;
				height: 28px;
				margin: 1px 10px;
				background: white;
			}

			.name {
				color: #152b23;
				font-size: 10px;
			}
		}

		.to {
			display: flex;
			justify-content: flex-end;

			.avatar {
				order: 1;
			}

			> span:after {
				position: absolute;
				width: 30px/2;
				height: 30px/2;
				right: -2px;
				top: 14px;
				content: '';
				border: 100px;
				background-color: #68e3ce;
				transform: rotate(45deg);
				z-index: -1;
			}

			.message-data {
				position: relative;
				text-align: left;
				//position: relative;
				background-color: #68e3ce;
				color: white;
				padding: 8Px;
				max-width: 70%;
				border-radius: 6Px;
				word-break: break-all;
			}
		}

		.from {
			display: flex;
			justify-content: flex-start;

			> span:after {
				position: absolute;
				width: 30px/2;
				height: 30px/2;
				left: -2px;
				top: 14px;
				content: '';
				border: 100px;
				background-color: white;
				transform: rotate(45deg);
				z-index: -1;
			}

			.message-data {
				position: relative;
				text-align: left;
				//position: relative;
				background-color: white;
				color: black;
				padding: 8Px;
				max-width: 70%;
				border-radius: 6Px;
				word-break: break-all;
			}
		}
	}


	.bottom-input {
		position: fixed;
		width: 100%;
		max-width: @maxWrapWith;
		box-sizing: border-box;
		bottom: 0;

		.speak-input-wrap {
			background-color: white;

			.voice {
				padding: 5px;
				display: flex;
				justify-content: space-around;
				align-items: center;

				> img {
					margin-right: 5px;
					height: 32Px;
				}

				.speak {
					font-size: 15Px;
					margin: 6Px 10px;
					width: 70%;
					height: 32Px;
					line-height: 32Px;
					text-align: center;
					border: 1Px solid #999999;
					border-radius: 4Px;
				}
			}
		}

		.alert {
			border-top: 1Px solid #f2f2f2;
			height: auto;


			> img {
				height: 50Px;
				margin: 20Px 10px;
			}
		}

		.tip {
			position: absolute;
			width: 50px;
			height: 50px;
			right: 20px;
			top: -70px;

			&:before {
				@size: 8px;
				content: '';
				position: absolute;
				right: @size;
				top: @size/4;
				background: deepskyblue;
				width: @size;
				height: @size;
				border-radius: @size;
			}

			> img {
				height: 50px;

			}
		}
	}

	.send-message {
		@width: 60Px;
		@height: 30Px;
		font-size: 16px;
		width: @width;
		line-height: @height;
		height: @height;
		background-color: @themeColor;
		color: white;
		outline: none;
		border: 0;
		border-radius: 5px;
	}

	.reminder {
		margin-top: 4PX;
		padding: 8Px 0 0;
		border-top: 1px solid #d5d8d5;
		font-size: 10px;
	}
}
